<html>
    <head></head>
    <body>
        <?php
foreach($data['page']['offer_data'] as $key => $value){

?>
<fieldset id="current_module">
<label><?php echo $value['training_title'];?><?php echo $value['main_category_name'];?> | <?php echo $value['sub_category_name'];?></label>
<form method="post" action="<?php echo EDIT_TRAINING_OFFER_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="id" value="<?php echo $value['id'];?>"/>
               	<input name="edit_main_category" id="edit_module" type="submit" 
                       value="<?php echo EDIT_CURRENT_OFFER;?>">
 </form>
<form method="post" action="<?php echo DELETE_TRAINING_OFFER_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="main_category_name" value="<?php echo $value['main_category_name'];?>"/>
               	<input name="delete_main_category" id="delete_main_category" type="submit" 
                       value="<?php echo DELETE_CURRENT_OFFER;?>">
 </form>

</fieldset>
<?php
}
?>
        <p><a href="<?php echo ADD_TRAINING_OFFER_LINK;?>" title="<?php echo ADD_OFFER_DESCRIPTION;?>" alt="<?php echo ADD_OFFER_DESCRIPTION;?>">
                <?php echo ADD_OFFER_DESCRIPTION;?>
            </a></p>
    </body>
</html>